package com.aeye.mbr.upms.dao.model;

import com.aeye.mbr.model.constant.UpmsDatabaseConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.DBColumn;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = UpmsDatabaseConstants.TABLE_TERMINAL)
public class UpmsTerminal implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    @Id
    @DBColumn(type = MySqlTypeConstant.VARCHAR,length = 12,isKey = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "AESEQ_TERMINAL")
    private Integer id;

    /**
     * 终端名称
     *
     * @mbg.generated
     */
    @DBColumn(type = MySqlTypeConstant.VARCHAR,length = 64)
    private String name;

    /**
     * 当前版本
     *
     * @mbg.generated
     */
    @DBColumn(type = MySqlTypeConstant.VARCHAR,length = 64)
    private String version;

    /**
     * 升级包地址
     *
     * @mbg.generated
     */
    @DBColumn(type = MySqlTypeConstant.VARCHAR,length = 256)
    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}